package com.party.mobile.web.dto.crowdfund.output;

import com.party.core.model.distributor.WithCount;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * 联合发起列表输出视图
 * Created by wei.li.
 *
 * @date 2017/12/27 0027
 * @time 14:06
 */
public class RepresentForListOutput {

    //编号
    private String id;

    //分销对象编号
    private String targetId;

    //分销者编号
    private String distributorId;

    //被分销者编号
    private String parentId;

    //创建者名称
    private String authorName;

    //创建者图像
    private String authorLogo;

    //创建者公司
    private String authorCompany;

    //创建者区域
    private String cityName;

    //创建者职务
    private String authorJobTitle;

    //创建者电话
    private String authorMobile;

    //创建时间
    private Date createDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorLogo() {
        return authorLogo;
    }

    public void setAuthorLogo(String authorLogo) {
        this.authorLogo = authorLogo;
    }

    public String getAuthorCompany() {
        return authorCompany;
    }

    public void setAuthorCompany(String authorCompany) {
        this.authorCompany = authorCompany;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAuthorJobTitle() {
        return authorJobTitle;
    }

    public void setAuthorJobTitle(String authorJobTitle) {
        this.authorJobTitle = authorJobTitle;
    }

    public String getAuthorMobile() {
        return authorMobile;
    }

    public void setAuthorMobile(String authorMobile) {
        this.authorMobile = authorMobile;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getDistributorId() {
        return distributorId;
    }

    public void setDistributorId(String distributorId) {
        this.distributorId = distributorId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public static RepresentForListOutput transform(WithCount withCount){
        RepresentForListOutput representForListOutput = new RepresentForListOutput();
        BeanUtils.copyProperties(withCount, representForListOutput);
        return representForListOutput;
    }
}
